package com.yixing.demo.service;

import com.yixing.demo.mapper.FriendMapper;
import com.yixing.demo.model.Friend;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service
public class FriendService {
    @Resource
    FriendMapper friendMapper;
    public List<Friend> getFriendListByUserId(Integer userId) {
       return friendMapper.getFriendListByUserId(userId);
    }
}
